/**
 * Created by 功振 on 2016/2/2.
 */
angular.module('Portal').controller("ProductController", ["$rootScope", "$scope", "$state", function ($rootScope, $scope, $state) {
    $rootScope.$broadcast('MainClassSet', 'reg_bg');

    var data = $state.current.data;
    if (data != null && data.item != null) {
        $scope.item = data.item;
        $scope.isItem = true;
        if (data.item == "全流程") {
            $scope.ciSelected = true;
        } else if (data.item == "一站式") {
            $scope.unifySelected = true;
        } else if (data.item == "生态系统") {
            $scope.ecoSelected = true;
        }
    }
/*
    $scope.toProductItem = function (itemAbbr) {
        $state.go("index.product-" + itemAbbr);
    };*/
}]);